package com.example.bookstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bookstore.common.PageResult;
import com.example.bookstore.common.Result;
import com.example.bookstore.entity.User;

import java.util.List;
import java.util.Map;


public interface UserService extends IService<User> {
    PageResult<User> selectByPageAndCondition(int currentPage, int pageSize, User user);

    User selectByUsername(String username,int id);

    Result<String> addUser(User user);

    User updateUser(User user);

    Result<String> deleteUser(List<Long> id);

    User login(String username, String password);

    User getUser(long id);

    Result<String> register(Map<String, String> param);

    User updateAvatar(User user);

    Result<String> enable(Integer id);

    Result<String> disable(Integer id);
}
